interface State {
  data: any[];
}
const initState: State = {
  data: [],
};
const reducer = (state = initState, action: any) => {
  switch (action.type) {
    case "addCar": {
      const item = state.data.find(v => v.id === action.payload.id);
    }
  }
};
